<?php
$this->breadcrumbs = array(
    'Users' => array('index'),
    'Manage',
);
?>
<div class="box">
    <header>
        <h5><i class="icon icon-user"></i> - Manager users</h5>
    </header>
    <div class="box">

        <?php
        $this->widget('bootstrap.widgets.TbGridView', array(
            'id' => 'user-grid',
            'dataProvider' => $model->search(),
            'filter' => $model,
            'columns' => array(
                array(
                    'name' => 'user_id',
                    'header' => '#',
                    'htmlOptions' => array(
                        'width' => 50
                    )
                ),
                'username',
                'email',
                'display_name',
                array(
                    'name' => 'status',
                    'filter' => User::getStatusRange(),
                    'value' => '$data->getStatusText()'
                ),
                array(
                    'name' => 'joined',
                    'type' => 'datetime',
                    'filter' => false
                ),
                /*
                  'activation_key',
                  'type',
                  'status',
                  'joined',
                  'first_name',
                  'last_name',
                  'gender',
                  'social_provider',
                  'social_uid',
                  'access_token',
                  'bio',
                  'last_login_time',
                  'last_login_ip',
                  'country',
                  'state',
                  'city',
                  'address',
                  'phone',
                  'telephone',
                  'mobile',
                  'postcode',
                  'featured',
                  'avatar',
                  'webpage',
                  'timezone',
                  'language',
                 */
                array(
                    'class' => 'bootstrap.widgets.TbButtonColumn',
                ),
            ),
        ));
        ?>
    </div>
</div>